<div class="menu">
<?php if(isset($menu_list)):?>
  <ul>
   <?php foreach ($menu_list as $key=>$item):?>
    <li class="nav0<?php echo $key +1 ; ?>"><a target="<?php echo $item->new_page == '1' ? '_blank' : '';?>" href="<?php  echo isset($item->link) ? $item->link : '#';?>" title=""></a></li>
    <?php endforeach;?>
                                
 </ul>
<?php endif;?>
</div>